package com.zg.http;

import org.glassfish.jersey.jackson.JacksonFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.spring.scope.RequestContextFilter;

import javax.ws.rs.ApplicationPath;

public class JerseyAPIApplication extends ResourceConfig {

	public JerseyAPIApplication() {
		packages("com.zg.resource");
        register(RequestContextFilter.class);
		register(JerseyResponseFilter.class);
		register(JerseyExceptionMapper.class);
		register(JerseyObjectMapperProvider.class);
		register(JacksonFeature.class);
	}
}